package com.bocai;

public enum ResponseCode {
	SUCCESS(200, "Success"),
	REQUEST_PARAM_ERROR(301, "Request Param Error"),
	NO_CHANGE(304, "Content Unchanged"),
	REQUEST_ERROR(400, "Request Error"),
	AUTH_REQUIRED(401,"Missing Auth Fields"),
	AUTH_FAILED(402,"Signature Verification Failure"),
	AUTH_REJECT(403, "Request Rejected/Unauthorized"),
	SERVICE_NOT_FOUND(404, "Service Not Found"),
	VER_NOT_FOUND(405, "Version Not Found"),
	SERVICE_UNAVAILABLE(406, "Service Unavailable"),
	SERVER_ERROR(500, "Internal Server Error"),
	NO_DATA(204, "No Data Return"),	
	
	// 注册返回码
	CHECK_MOBILE_ERROR(50001, "检测号码失败"),
	REGISTER_FAILURE(50002, "注册失败"),
	REGISTERED(50003, "号码已被注册"),
	// 登录返回码
	LOGIN_ERROR(50021, "登录失败"),
	LOGIN_FAILED(50022, "用户名或者密码错误"),
	NOT_LOGIN(50023, "请重新登陆"),
	USER_EXISTENT(50024, "用户已存在"),
	USER_DISABLE(50025, "用户被冻结"),
	
	// 增加/修改用户银行信息返回码
	ADD_BANK_INFO_ERROR(50031, "添加银行信息失败"),
	MOD_BANK_INFO_ERROR(50032, "修改银行信息失败"), 
	// 修改密码返回码
	MOD_USER_PASSWORD_ERROR(50033, "修改密码失败"),
	SAME_PASSWORD_ERROR(50034, "新旧密码一样"),
	OLD_PASSWORD_ERROR(50035, "旧密码不正确"),
	
	// 玩法
	BJ28_MIX_BET_ERROR(50041, "混合下注失败"),
	BJ28_LEOPARD_BET_ERROR(50042, "波色下注失败"),
	BJ28_SPEC31_BET_ERROR(50043, "特码3压1下注失败"),
	BJ28_SPEC_BET_ERROR(50044, "特码下注失败"),
	BJ28_OPEN_PRIZE_ERROR(50045, "开奖失败"),
	BJ28_QUERY_PRIZE_ERROR(50046, "中奖查询失败"),
	BET_FAILURE(50051, "下注失败"),
	BET_SUCCESS(50052, "下注成功"),
	
	// 账户金额
	WITHDRAW_FAILED(50061, "提现失败"),
	NOT_ENOUGH_BALANCE(50062, "余额不足"),
	BANK_INFO_NOT_COMPLETE(50063, "银行账户信息不完整"),
	TRANSFER_FAILED(50064, "转增失败！目标账户不存在或已冻结"),
	;
	private int value;
	private String desc;
	
	private ResponseCode(int value, String desc) {
		this.value = value;
		this.desc = desc;
	}

	public int getValue() {
		return value;
	}

	public String getDesc() {
		return desc;
	}
}
